Skip to content

1.2.x release line: metamodel 1.3 vocabulary, C# codegen hooks, naming strategies (rc.2) - #593

Merged
dmealing merged 272 commits into
mainfrom
fix/rc19
Nov 18, 2026
Merged

dmealing merged 272 commits into
mainfrom
fix/rc19

Conversation

@dmealing

Copy link
Copy Markdown
Member

⚠️ Written by Claude (AI) on behalf of Doug Mealing. It may contain errors — take it with a grain of salt and verify before acting.

What this is

fix/rc19 is the 1.2.x release line. It holds everything since 1.2.0 that 1.2.2 and 1.2.3 did not ship, with released 1.2.3 already merged in. It has been cut as release candidates up to 1.2.4-rc.2 (npm + NuGet) on the private prerelease feed. This PR exists so the line can be released publicly.

The full list is under ## [1.2.4] in CHANGELOG.md. In short:

  • Metamodel 1.3.
    • Added vocabulary: the rc.21 view vocabulary (origin.function, @union/@unionAll, @grain, cast and the function set), @stringValueMap, @dbCheck: false, field.duration, @constraintName, @condition, @sequenceStart/@sequenceName, @flattenedColumnPrefix, the pascal column rule, and @dbSetName.
    • New registry fields: implementedIn and ports (ruling R40).
  • C# codegen.
    • The DbContext and entity generators can be overridden one hook at a time.
    • One property-name resolver serves every generator.
    • Package-keyed paths and namespaces (R64/R65).
    • A typed nullable-enum converter.
    • An orphan sweep for self-hosted multi-run runners (G5).
    • verify --codegen renders the design-time services file and resolves ContextAssemblyName against the real --out.
  • Pluggable naming strategies in every port (ADR-0058 Amendment 1).
  • Contract emitters: JSON Schema and OpenAPI (FR-022).
  • A security fix, C#: under a snake or kebab JSON naming policy, a credential could be returned in every response.
  • Many view, CHECK and EF-model fixes. They are listed under ### Fixed.

Merging: main has moved

1.3.0 shipped on main (#556) after this line branched, and main carries 45 commits that this branch does not. A trial merge (git merge-tree) reports ~670 conflicted paths:

Port Conflicted paths
server/typescript ~210
server/csharp ~150
server/java ~90
server/python ~40

The rest are fixtures, examples and docs.

Both sides independently claim metamodel 1.3, so the version and the CHANGELOG headings have to be reconciled when this merges. The release probably becomes 1.3.x or 1.4.0 rather than 1.2.4. Each side's vocabulary has to survive the merge, and nothing may be dropped silently.

Suggested order:

  1. Merge main into this branch, keeping both sides' behaviour.
  2. Run every port's suite and the conformance fixtures.
  3. Pick the version.
  4. Release through the normal publish flow.

Test plan

  • Merge main, and resolve every conflict by keeping both sides' behaviour.
  • Run the C# suites: Codegen, Conformance, Cli, Render and the docker IntegrationTests.
  • Run the TypeScript workspace suite.
  • Run the Java and Python suites. These were not run for rc.2.
  • Check the registry manifest's metamodelVersion and the CHANGELOG sections against the chosen version.
  • Refresh the agent-context skills, so they document gen-skip and PropertyNaming.

🤖 Generated with Claude Code

dmealing and others added 30 commits November 2, 2026 21:19
The CHECK-generating validators (numeric, length, regex, comparison,
requiredWhen, presentIff, atLeastOne) and field.enum take an optional
db-provider @constraintName that names their CHECK. The cross-field
validators take an optional @condition expression that guards the CHECK,
and atLeastOne takes @max, so @max 1 is "exactly one". An unknown field
in @condition and an atLeastOne @max below 1 or above its field count are
load errors in every port. All additions are optional: a model that sets
none of them generates the CHECKs it did before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tions

- atLeastOne @max above 1 is two comparisons, not BETWEEN: Postgres stores a
  BETWEEN as two comparisons, so the CHECK drifted on every run without the
  canonicalisation probe. A live-PG test applies the new CHECKs and re-diffs.
- @condition is type-checked at load in every port: a boolean expression, a
  literal of its field's kind (an enum member for field.enum), no null literal.
  A compound comparison operand is parenthesised, and an int-backed enum member
  is compared as its stored integer.
- A declared CHECK name another constraint on the table has, or one over 63
  bytes on Postgres, is refused by migrate and verify (ERR_CHECK_NAME). A
  declared name keeps a length CHECK the efcore conventions would skip.
- Docs: where @constraintName is allowed, rename behaviour on SQLite, the
  docs site's rendering of @max and @condition, the authoring skill's table.
- C# CHECK_VALIDATOR_SUBTYPES is an IReadOnlyList; misplaced doc comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new field subtype for an elapsed time, timeout or delay: C# TimeSpan, Java
and Kotlin java.time.Duration, Python timedelta, TypeScript string. The
column is a Postgres interval, text on SQLite and MySQL. The wire form is an
ISO-8601 duration of days, hours, minutes and seconds; every port writes one
canonical form (PT1H30M, PT26H, -PT1M30S, PT0S) and refuses years, months,
weeks and spans past 256204778 hours (the largest a TimeSpan holds), so any
port reads what any port wrote. Shared vectors: fixtures/duration-wire.

Postgres 15 refuses a signed ISO-8601 duration as interval input, so a value
bound as text and a declared @default use Postgres's own HH:MM:SS spelling,
which it returns unchanged (no default drift). A live interval column still
modelled as field.string reads as text, as before, so it does not become
drift. Filters: eq, ne, in, isNull, canonicalised per dialect; a duration
inside a jsonb value object is canonical too.

Corpora: field-duration-basic, validation-conformance (13 cases),
persistence-conformance AllTypes.durationVal (roundtrip and update scenarios,
green on Postgres in every port), contract-conformance all-fields.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Per-stack limits only, no cross-port normalisation:
- No shared upper bound: each port is limited by its own type (TimeSpan,
  timedelta; java.time.Duration is effectively unbounded) and refuses, never
  wraps.
- SQLite, D1 and MySQL store a 64-bit integer count of microseconds (Django's
  DurationField precedent); Postgres keeps its native interval. Both order and
  compare as the span, so duration takes every ordered filter op (gt, gte, lt,
  lte) and sort on every database; Cube exposes it as seconds.
- C# on Npgsql maps each duration through NpgsqlInterval and refuses a month
  or year part and a day count past TimeSpan, which Npgsql's own TimeSpan read
  silently drops or wraps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This reverts 55dcc71. metamodelVersion is the one signal that two ports
know the same vocabulary: without a bump, a port left on the old
vocabulary reports the same number and only fails strict verify on the
new attributes. Additive vocabulary moves the metamodel MINOR again; the
packages still ship it as a patch, since the two numbers are separate
(ADR-0035 Amendment 2).

metamodelVersion is now 1.3 for field.duration, the CHECK vocabulary,
the sequence and flattened-prefix attributes, and the upperFirst rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A review of this branch asked where a limit was imposed across ports or
fitted to one adopter. Each port and database now keeps its own capability.

field.duration
- A week (nW) is exactly 7 days; a fraction may have any number of
  digits. Each port writes its own precision (TypeScript and Python 6,
  C# 7, Java and Kotlin 9) and truncates toward zero; storage holds
  microseconds.
- fixtures/duration-wire splits into `wire` (every port) and `codecs`
  (only the ports with that codec). Python drops a helper it kept only
  to pass a group.
- A @condition or @equals literal against a duration renders in the
  column's form (interval text on Postgres, microseconds on SQLite/D1),
  including through coalesce; a literal that is not a duration is refused.
- The in-memory driver stores and compares microseconds, so ordering and
  range filters follow the span.
- Python's Postgres reads refuse a month or year interval (psycopg turned
  one into 30 days) and read negative intervals right (pg8000 misread
  them). C#: the Npgsql interval mapping is public and top-level, so EF
  compiled models work; LINQ translation is tested.

migrate
- efcore truncates names at 63 only on Postgres; EF's SQLite provider
  truncates nothing.
- Skipping redundant CHECKs is its own setting,
  migrate.checks.skipRedundant, not part of a naming preset. A
  conventions object still setting skipRedundantChecks is refused.
- Schema conventions no longer ride on MetaRoot: the cli resolves them
  once and passes them to every expected-schema build, drift run and the
  Prisma generator. meta gen and verify --codegen refuse an unknown
  preset, as migrate and verify --db do.
- Advisories: a live interval modelled as a string, and a sequence that
  SQLite cannot hold, are reported instead of passing silently.

Elsewhere
- The PascalCase column rule is now upperFirst (unreleased; no alias).
- A flattened field's own column constant is deprecated in every port.
- Python drops enum-length resolution nothing used; the config block is
  still accepted.
- Fixture and doc examples use neutral names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@intValueMap with isArray (own or inherited from a shared enum) was a load
error, ERR_ENUM_INT_VALUE_MAP_ARRAY, in every port: design D7 chose identical
refusal over per-port support. Because the map is read through extends, one
map on a shared enum blocked every scalar column that used it as soon as any
array field shared the enum too.

Each element is now stored as its declared integer and read back as its
member: integer[] on Postgres, a JSON array of numbers on SQLite, D1 and MySQL.
An unmapped stored integer fails the read, as for a scalar.

- TypeScript: ObjectManager and Drizzle columns map elements on every engine;
  an unmapped member throws on write (an array column has no CHECK).
- C#: the array conversion compiles (ValueConverter), the unmapped-value
  helper is emitted for a flattened value object's array member, projection
  and report enum arrays get the element converter instead of ordinals, and a
  non-required int-backed enum array is nullable.
- Python: element-wise on write, read and filter operands on Postgres; its
  SQLite and MySQL dialects store no primitive array, so the scenario is
  deferred there.
- Java/Kotlin: no runtime stores an enum array; OMDB's codec refuses the
  int-backed form instead of writing symbols, and both defer the scenario.

The two error fixtures become positive conformance fixtures, and the new
persistence scenario roundtrip-int-enum-array gates the runtime codecs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…est imports

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diagnosis produced the DbSet Diagnosises and the finder FindDiagnosisesBy...;
it now produces Diagnoses. The REST collection segment keeps the cross-port
rule, since every port spells it the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and the finders

GenConfig.PropertyNaming names a field's C# property for every generator that
references one: the entity classes, the composite [PrimaryKey(nameof(...))],
every AppDbContext model line and the reverse finders. DbContextGenerator gets
the PropertyName hook EntityGenerator already had, and both default to it.

Also: EntityGenerator.EmitClassAttributes, a seam for class-level attributes;
EmitsReverseFinders to turn the finders off; and the finders now type their
context parameter as GenConfig.ContextTypeName instead of AppDbContext.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The model-to-provider chain ended in the last member's integer, so any value
outside @values was stored as that member. Every member now has a branch and
the chain ends in a generated UnmappedEnumMember helper that throws, matching
the read side. The array element converter is the same pair.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
identity.primary @generation: assigned now emits ValueGeneratedNever() for a
single-column key, so a key of 0 is sent on insert instead of being left to a
database default that does not exist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e EF model

ReferenceConfig appends HasConstraintName from @constraintName (M:N junction
sides too) and HasPrincipalKey when @references names target fields other than
the primary key. The reverse finder for such a reference types its value by
that target field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
HasValue named the enum as nested in the base entity. It now resolves the
type through Fr019SharedEnum.SharedEnumTypeReference, as the enum conversions
already did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pins that a view-backed and a stored-procedure projection whose identity.primary
extends an entity identity (fields renamed through extends) get that key in the
EF model and read back from a live Postgres.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ited facets

Under EmitAbstractShapes the concrete class omitted the fields its abstract
parent declares but never named the shape as its base, so they were on no
class. It now declares the shape as base, and the DbContext configures the key,
column names and max lengths the attribute-free shape cannot carry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The model configuration ran over the TPH root's fields only. Each concrete
subtype now configures the fields it adds (owned value objects, timestamp
column types, enum conversions, precision, arrays, maps, durations and
read-only save behaviour) on its own builder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…value

The flattened owner mapped it as a nested owned ToJson, which EF Core 8
refuses inside a table-split owned type, failing the whole model. It is now
one jsonb property through MapJsonb.ObjectConverter, pinned to its flattened
column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A @required value-object member of a value object was initialized to
default!, so a document that omitted it read back as null behind a
non-nullable type. It is now new T(); an abstract target keeps default!.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EntityGenerator.ScopesValueObjectClosure applies Include to the value objects
a run reaches through the model root, so a narrowed-out value object gets no
POCO even when an emitted type references it. Off by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A literal default is HasDefaultValue(v).HasSentinel(v): with the default as the
sentinel, EF omits a property from an INSERT only when its value is the default
anyway, so an explicit false, 0 or NULL is stored as set. A SQL expression is
HasDefaultValueSql, on required properties only, where the CLR default means
not supplied. A live Postgres test pins both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MetaData.Cached stored derived reads in a plain Dictionary. A loaded model
is shared across threads, so two concurrent first reads of one node could
corrupt it, and every later read then threw "Operations that change
non-concurrent collections must have exclusive access". The cache is now a
ConcurrentDictionary; a racing first read keeps the first stored value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One OnModelCreating holding every configuration line of a large model has a
stack frame too big for a thread-pool thread in a Debug build, and the test
host overflowed its stack building the model. Past ModelConfigChunkSize
entries (default 200) the lines go into ConfigureModelNN methods, called in
order; a smaller model's output is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntity emitters

Each private emitter an adopter had to patch becomes a protected virtual hook
returning what it emits, so an override calls base and adjusts it. Default
output is byte-identical (the existing snapshot suite passes unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ay duration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An array of durations is both a primitive collection and a duration; its two
halves were written apart before the hooks and are again. Also braces on the
new bodies, a null from EnumConversionCall/DbColumnTypeConfig skips the line,
and the preamble/trailer gating limit is documented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ery port

The physical-naming corpus renames the upperFirst column rule to pascal
(unreleased, no alias) and gains:
- Person.npi with an acronym @column (NPI stays NPI under every rule) and
  Person.ssn with none (pascal gives Ssn);
- a `strategies` section: application-registered strategies each port
  registers through its own registry before reading any block, one per
  setting, each delegating to a built-in;
- a case selecting them by name (columns pascal-acronyms, tables tbl-snake);
- refusals for a name nothing registered and for a column strategy named as a
  table rule, with the strings the message must carry.

Each port's runner registers the corpus strategies the way an application
would, and each port gains unit tests for its registry: built-ins by name, a
strategy wrapping a built-in, no replacing a built-in, and the unknown-name
message naming the strategy and the port. TypeScript also gets a CLI test:
namingStrategies in metaobjects.config.ts, selected from config.json, names
the columns meta migrate emits.

Red: the registry API does not exist yet in any port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The column and table rules are named strategies in a registry
(@metaobjectsdev/metadata): the built-ins snake_case, literal, kebab-case
and pascal (columns) and snake_case, literal (tables) are registered by
name, and an application adds its own with registerColumnNamingStrategy /
registerTableNamingRule, or `namingStrategies` in metaobjects.config.ts.
A strategy may wrap a built-in: columnNamingStrategy("pascal")(n).

- applyColumnNamingStrategy / applyTableNamingRule look the name up, so
  codegen, migrate, the runtime, verify and the view and docs generators
  all resolve through it; @column and @table still win.
- The registry lives on globalThis under a Symbol.for key, so a global CLI
  and a project-local copy of the package share it.
- .metaobjects/config.json accepts any registered name; one that nothing
  answers is refused when the file is read, naming the setting, the name,
  the port and what is registered.
- The meta dispatcher registers the project's namingStrategies before any
  command reads the config, and only loads metaobjects.config.ts when the
  naming block names a strategy not registered yet.
- upperFirst is now pascal (toPascalColumn), with no alias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ColumnNamingStrategy and TableNamingRule become classes compared by name
(the built-ins keep their member names; Pascal replaces the unreleased
UpperFirst), and NamingStrategies is the registry an application extends:
RegisterColumns / RegisterTables before the load or codegen run, Column /
Table / TryGet* to look one up. Wrapping a built-in is one line:
n => n == "npi" ? "NPI" : ColumnNamingStrategy.Pascal.Apply(n).

- NeutralConfig accepts any registered name and refuses one nothing
  answers when it reads the file, with the cross-port message.
- PhysicalNaming, CSharpNaming and the table rule apply the strategy
  instead of switching on an enum; verify --codegen's naming probe walks
  the registry (built-ins first, then the application's).
- Constant default parameters become nullable with the same defaults;
  EntityGenerator.ScalarProperty's strategy parameter is now nullable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dmealing and others added 22 commits November 14, 2026 23:30
…refuse variants)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and what default output now changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A view.password on a value-object member is not stripped; stripping covers
top-level entity fields only. Recorded as a known limit until fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… enum

A scalar @intValueMap or @stringValueMap enum's lambda pair went straight
into HasConversion(...), so EF typed the converter on the property: an
optional field got ValueConverter<E?, int|string>. EF Core 8 cannot build
the JSON collection reader for a parameterised Contains over that
converter, and the query failed at runtime on Npgsql.

The pair is now wrapped in new ValueConverter<E, int|string>(...), for
required and optional fields alike, as the array element converter
already was. Member chains, the unmapped-value throw and HasMaxLength are
unchanged; the committed integration fixture is regenerated.

Tests: codegen assertions for optional and required, int- and
string-stored fields plus an EF 8 compile; a live Postgres Contains query
over each shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The live Postgres test now asserts that an optional int-stored and
string-stored column reads NULL back as null, and runs a Contains whose
list holds null, which matches the NULL row as well as the listed
member. The codegen test header names the exception on each EF 8 patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings the released gen-skip work (ADR-0062/0064) and the mutation-CI change onto the
release line's unreleased work.

Conflicts, each resolved keeping both sides:
- CodegenCli.cs: the extender-subtype-scope warning, then the gen-skip key check.
- CodegenRunner.cs: RunResult carries EmittedPaths and Complete/OutsidePaths.
- CodegenDrift.cs: the in-memory render, with MetaModelException still caught.
- verify.ts: the schema-conventions refusal, then the local no-drift answer.
- CHANGELOG.md: the released [1.2.3] section as released; the unreleased entries move to
  a new [1.2.4] section above it.
- AGENTS.md, CONFORMANCE.md, site-payload.json: counts recomputed on the merged tree
  (475 fixtures, 39 corpora, metamodel 1.3); the codegen-skip corpus row joins the table.
- capability-sheet.md: "regenerate in memory", with the Maven verify-mode wording.
- bun.lock: re-resolved by bun install against the merged manifests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ly name is read from

With no GenConfig.ContextAssemblyName, the DbContext generator names its design-time
services reference after the one .csproj in --out or the nearest directory above it. That
file can lie outside codegen/ and .metaobjects/, so a renamed assembly left the key
unchanged and gen skipped over a stale reference. The identity now carries a `project`
entry for that file (or "missing" when there is none), and the format version moves to 4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ble and the arithmetic

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… its renamed predicate

The Coupon/Permit rename changed v_auths_by_kind's WHERE clause without regenerating the
artifact, so its COMMENT ON VIEW still held the old body's hash and the schema-artifact
drift test failed. Regenerated with `bun run gen:schema`; only that comment moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… its package directory

The default TypeScript outputLayout is "package", so the case's Customer module is written to
generated/crm/Customer.ts, not to the flat path the test was written against.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gen read

The drift render moves --out to a virtual root. With no GenConfig.ContextAssemblyName the
name is read from the .csproj in or above --out, and the virtual root has none, so the
render left out the DesignTimeServicesReference line gen wrote and reported
<Context>DesignTimeServices.g.cs as drift on every rendering verify, which CI always does.
The name is now resolved against the real --out before the directory moves.

The new IdentityStartVerifyTests case (a .csproj above --out, Postgres, gen then
verify --codegen --full) reports drift without the fix and passes with it. The existing
case there also passes --full now, so it exercises the render rather than the stored key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since ADR-0062 a local verify after an unchanged gen may answer "no drift" from the stored
key without rendering, so these tests stopped exercising the in-memory render they were
written for; a render-path regression would surface only in CI. Each now passes --full.
The gen-skip conformance tests keep the bare form: the stored-key answer is what they test.
With --full the C# suites still pass, so the render path hides no further defect.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…named, and refuses a format-3 key

Two end-to-end cases through CodegenCli.Run on a Postgres project with a .csproj above
--out: an unchanged second gen skips, renaming the assembly renders again and the
DesignTimeServicesReference names the new assembly; and a stored key rewritten to
format 3 is not read, so gen renders and stores a format-4 key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dotnet meta gen printed the rc.21 extender-subtype-scope warning before its skip check,
meta gen after it, so the same unchanged project warned in one port and not the other.
ADR-0062 says nothing about output on a skipped run; the finding is about the model, and a
warning that stops appearing once nothing changes is one nobody fixes, so meta gen now says
it before the skip too, and a structured skip document carries it under `warnings`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test-model rename left one Copay mention in the [1.2.2] section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the ~680 conflicted paths between the release line and main, keeping both
sides' behaviour. Where the two disagree, main's shipped 1.3.0 behaviour wins and
the line's variant stays as an opt-in where it had one:

- the default output layout is flat (the line's package layout and namespaces are opt-in)
- validator.atLeastOne takes no @max (exactlyOne replaces it)
- @dbSetName is not vocabulary (@collectionName replaces it)
- Postgres view and report relations are qualified only when @Schema is declared
- a flattened value object's field has no own column constant

Generated artifacts (registry manifest, metamodel docs, canonical schemas, golden
files, agent-context corpus, owned template copies, showcase output) are regenerated.
Versions follow main (npm/PyPI/NuGet 1.3.0, Maven 8.3.0); the release version and the
CHANGELOG heading for the line's 1.2.4 section are left pending.
…make a C# golden mismatch readable in CI

- docs/features/adopting-existing-models.md (edited by the gate's document step) and the same
  outputLayout comment in four recipes, the agent-context mirror and the agent-context
  conformance corpus now say `"package"` is the opt-in layout, matching the flat default.
  Fixes the sdk recipe-mirror test that failed in CI.
- PropertyNamingGoldenTests names the file, the first differing line and both spellings on a
  mismatch, and compares file names ordinally. It failed in CI only, with no message.
- ci-local's C# lane adds the minimal console logger, so a failing test's message reaches the log.
…o root

A CI build (CI=true turns on ContinuousIntegrationBuild) maps source paths to /_/, so
the [CallerFilePath]-derived Golden directory did not exist and the test threw
DirectoryNotFoundException on hosted runners. The neighbouring golden test already
finds its files from the repo root; this one now does too.
feat: merge main (1.3.0) into the 1.2.x release line — metamodel 1.3 vocabulary, C# codegen hooks, contract emitters
The line's unreleased work (prepared as 1.2.4 candidates) is folded into
main's [1.3.0] section: duplicates dropped, both sides' real entries kept,
main's behavior stands where they differ (default layout stays flat,
@dbSetName is @collectionName, tsOnly still emitted). expected-registry.json
is stable under regen (union vocabulary, metamodelVersion 1.3). CHANGELOG.md
is the only file resolved.
@dmealing
dmealing merged commit 4c4658b into main Nov 18, 2026
24 of 28 checks passed
@dmealing
dmealing deleted the fix/rc19 branch November 18, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant